package com.njwb.feign.client;

import com.njwb.json.ResponseResult;
import com.njwb.pojo.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient("nacos-seata-emp")
public interface EmpServiceClient {
    @PostMapping("/emp")
    public ResponseResult add(@SpringQueryMap Emp emp);
}